package com.example.demo.service.impl;

import com.example.demo.dao.PlantMapper;
import com.example.demo.model.Plant;
import com.example.demo.service.MPlantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Administrator on 2018\6\29 0029.
 */
@Service
public class MPlantServiceImpl implements MPlantService{

    @Autowired
    private PlantMapper plantMapper;

    public List<Plant> queryAll() {
        Integer id = 1;
        return plantMapper.queryById(id);
    }
}
